package customer.zspt.cn.customer.Widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import customer.zspt.cn.customer.R;

/**
 * Created by Administrator on 2018/7/22 0022.
 */

public class ChatMoreItem extends LinearLayout {
    private  ImageView more_Item_icon;
    private  TextView more_Item_title;
    private String title;
    public ChatMoreItem(Context context) {
        this(context,null);
    }
    public ChatMoreItem(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }
    public ChatMoreItem(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View.inflate(context, R.layout.chat_more_item,this);
        more_Item_title = (TextView)findViewById(R.id.more_Item_title);
        more_Item_icon = (ImageView)findViewById(R.id.more_Item_icon);
    }
    public  void setTitle(String title)
    {
        this.title = title;
        more_Item_title.setText(title);
    }
    public void setIcon(int resoure)
    {
        more_Item_icon.setImageResource(resoure);
    }

    public String getTitle(){
         return  title;
    }

}
